﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace DataAccessLayer
{
    [Serializable, XmlType("EnemySet")]
    public sealed class EnemySpawnSet
    {
        [XmlElement]
        public float SpawnInterval { get; set; }

        [XmlElement]
        public int SpawnTotal { get; set; }

        [XmlArray("Enemies"), XmlArrayItem("Enemy")]
        public List<Enemy> Enemies { get; set; }

        public EnemySpawnSet()
        {
            SpawnInterval = 3;

            SpawnTotal = 0;

            Enemies = new List<Enemy>();
        }
    }
}